package example01;

public class Rectangle {
	 int x, y;
	   public void setValues (int a, int b) 
	   {
	        x = a;
	        y = b;
	    }
	    public int area() { 
	             return (x * y);
	    }
	   public static void main(String[] args) 
	    {
	        Rectangle  recta = new   Rectangle();
	        Rectangle  rectb = new  Rectangle();
	        recta.setValues(3, 4);
	        rectb.setValues(5, 6);
	        
	        System.out.println("rect a:"+ recta.area());
	        System.out.println("rect b:"+ rectb.area());
	    }
}
